import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
	{
		path: "/table",
		component: () => import('@/views/table.vue')
	},
	{
		path: '/',
		name: 'login',
		component: () => import('@/views/Login.vue')
	},
	{
		path: '/main',
		name: 'main',
		component: () => import('@/views/Main.vue')
	},
	//crud参考
	/*
	{
		path: "/customer",
		component: () => import('@/views/customer.vue')
	},
	*/
]

const router = new VueRouter({
	mode: "hash",
	routes
})

export default router